package com.yh.csx.demo.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.yh.csx.demo.model.po.Customer;
import com.yh.csx.demo.model.po.CustomerExample;
public interface CustomerMapper {
    int countByExample(CustomerExample example);

    int deleteByExample(CustomerExample example);

    int deleteByPrimaryKey(Long id);

    int insert(Customer record);

    int insertSelective(Customer record);

    List<Customer> selectByExample(CustomerExample example);

    Customer selectByPrimaryKey(Long id);
    
    void replaceByPrimaryKey();

    int updateByExampleSelective(@Param("record") Customer record, @Param("example") CustomerExample example);
    int updateByExample(@Param("record") Customer record, @Param("example") CustomerExample example);

    int updateByPrimaryKeySelective(Customer record);
    int updateByPrimaryKey(@Param("record") Customer record);    
    
    int selectCountByCustomerName(@Param("customerName") String customerName, @Param("customerId") Long customerId);

}